package qc.module.platform.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.platform.dto.param.group.ParamGroupDto;
import qc.module.platform.entity.QcParamGroup;

import java.util.List;

/**
 * ParamGroupMapper
 *
 * @author QuCheng Tech
 * @since 2024/2/22
 */
@Mapper
public interface ParamGroupMapper {
    ParamGroupMapper MAPPER = Mappers.getMapper(ParamGroupMapper.class);

    ParamGroupDto toDto(QcParamGroup en);
    
    QcParamGroup toEntity(ParamGroupDto dto);

    List<ParamGroupDto> toDtoList(List<QcParamGroup> list);
}
